package org.inspursc.s0517.health.common.service;

import org.inspursc.s0517.health.common.dto.SysRoleDTO;
import org.inspursc.s0517.health.common.entity.SysRole;
import org.inspursc.s0517.health.common.vo.SysRoleVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @author B_Dream
 * @date 2018/5/29 19:59
 */
public interface SysRoleService {

    SysRoleDTO save(SysRoleDTO sysRoleDTO, List<Integer> permissionIds);

    SysRoleVO findById(Integer id);

    List<SysRole> findAll();

    boolean deleteById(Integer id);

    Page<SysRole> findByNameLike(String name, Pageable pageable);

    List<SysRole> findByUserId(Integer userId);
}
